package com.yan.test.test2;

/**
 * @author taoge
 * @Date 2024/8/9 19:57
 * @Description
 */
public class CharPrint extends Thread {
    private Print p;

    public CharPrint(Print p) {
        this.p = p;
    }

    @Override
    public void run() {
        for (char c = 'A'; c <= 'Z'; c++) {
            p.print(c);
        }
    }


}
